docs: clarify --artifact-type=docker requires registry digest#834
docs: clarify --artifact-type=docker requires registry digest#834AlexKantor87 merged 4 commits intomainfrom
Conversation
|
Claude finished @mbevc1's task in 2m 28s —— View job PR Review: docs: clarify --artifact-type=docker requires registry digest
Static AnalysisAll checks pass:
ReviewOverall: This looks good. The PR is well-scoped — it adds documentation for a real customer pain point without changing any runtime behavior. The two approved reviews and mbevc1's test-data fix (commits What I checked:
No bugs, security issues, or missing edge cases — this is a pure documentation change. LGTM. |
A customer hit "repo digest unavailable for the image, has it been pushed to or pulled from a registry?" after kosli attest artifact with --artifact-type=docker in CI, where the image was built but never pushed. The constraint that the docker artifact type requires a registry-resident image was only stated in the error itself. Add a note to the long descriptions of attest commands (via fingerprintDesc) and kosli fingerprint, covering the constraint and pointing at oci and dir as alternatives. Help-text only; no behaviour change. Auto-generated docs in kosli-dev/docs will pick this up on the next CLI release. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Source-dir fingerprinting only works as an end-to-end identity if the runtime side also fingerprints the source dir. Standard Kosli runtime reporters fingerprint the running image, so suggesting dir as a generic swap is misleading — the attested and running artifacts would never link. Push and oci are the safe answers for the typical case. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
d13ef90 to
7848fbd
Compare
|
Failing test, |
#834) * docs: clarify --artifact-type=docker requires registry digest A customer hit "repo digest unavailable for the image, has it been pushed to or pulled from a registry?" after kosli attest artifact with --artifact-type=docker in CI, where the image was built but never pushed. The constraint that the docker artifact type requires a registry-resident image was only stated in the error itself. Add a note to the long descriptions of attest commands (via fingerprintDesc) and kosli fingerprint, covering the constraint and pointing at oci and dir as alternatives. Help-text only; no behaviour change. Auto-generated docs in kosli-dev/docs will pick this up on the next CLI release. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * docs: drop dir suggestion from artifact-type=docker note Source-dir fingerprinting only works as an end-to-end identity if the runtime side also fingerprints the source dir. Standard Kosli runtime reporters fingerprint the running image, so suggesting dir as a generic swap is misleading — the attested and running artifacts would never link. Push and oci are the safe answers for the typical case. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
Companion to kosli-dev/docs#183.
A customer hit
Error: repo digest unavailable for the image, has it been pushed to or pulled from a registry?after runningkosli attest artifact ... --artifact-type=dockerin CI, where the image was built but never pushed. Locally the same command appeared to work because the image had been pulled earlier and the digest was cached on the machine.The constraint that
--artifact-type=dockerneeds a registry-resident image was only stated in the error message itself. The long descriptions of every attest command (viafingerprintDesc) andkosli fingerprintdescribe the four artifact types but don't surface this requirement.This PR adds a
Note:paragraph to:fingerprintDescincmd/kosli/root.go— flows into the long help ofattest artifact,attest generic,attest snyk,attest sonar,attest junit,attest jira,attest custom, and the PR-attest commands.fingerprintLongDescincmd/kosli/fingerprint.go—kosli fingerprintdirectly.The note covers the registry requirement and points at
--artifact-type=ociand--artifact-type=diras alternatives.Out of scope
Not changing the short flag description (
artifactTypeFlagconstant) — it's terse on purpose and shows in many help screens. The detail belongs in the long description.Test plan
make buildpassesgo vet ./cmd/kosli/...passeskosli attest artifact --helpshows the new notekosli fingerprint --helpshows the new noteclient_reference/kosli_attest_artifact.mdinkosli-dev/docswill pick this up via theupdate-cli-docsworkflow🤖 Generated with Claude Code